
package com.daguchuangyi.erp_android.model.product;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Count implements Parcelable {

    @SerializedName("withoutCategoryCount")
    @Expose
    private int withoutCategoryCount;
    @SerializedName("withoutImageIdCount")
    @Expose
    private int withoutImageIdCount;
    @SerializedName("withImageIdCount")
    @Expose
    private int withImageIdCount;
    @SerializedName("totalCount")
    @Expose
    private int totalCount;
    @SerializedName("pageCount")
    @Expose
    private int pageCount;
    public final static Creator<Count> CREATOR = new Creator<Count>() {


        @SuppressWarnings({
                "unchecked"
        })
        public Count createFromParcel(Parcel in) {
            return new Count(in);
        }

        public Count[] newArray(int size) {
            return (new Count[size]);
        }

    };

    protected Count(Parcel in) {
        this.withoutCategoryCount = ((int) in.readValue((int.class.getClassLoader())));
        this.withoutImageIdCount = ((int) in.readValue((int.class.getClassLoader())));
        this.withImageIdCount = ((int) in.readValue((int.class.getClassLoader())));
        this.totalCount = ((int) in.readValue((int.class.getClassLoader())));
        this.pageCount = ((int) in.readValue((int.class.getClassLoader())));
    }

    public Count() {
    }

    public int getWithoutCategoryCount() {
        return withoutCategoryCount;
    }

    public void setWithoutCategoryCount(int withoutCategoryCount) {
        this.withoutCategoryCount = withoutCategoryCount;
    }

    public int getWithoutImageIdCount() {
        return withoutImageIdCount;
    }

    public void setWithoutImageIdCount(int withoutImageIdCount) {
        this.withoutImageIdCount = withoutImageIdCount;
    }

    public int getWithImageIdCount() {
        return withImageIdCount;
    }

    public void setWithImageIdCount(int withImageIdCount) {
        this.withImageIdCount = withImageIdCount;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(withoutCategoryCount);
        dest.writeValue(withoutImageIdCount);
        dest.writeValue(withImageIdCount);
        dest.writeValue(totalCount);
        dest.writeValue(pageCount);
    }

    public int describeContents() {
        return 0;
    }

}
